package com.ea;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author NAME-L
 * @Description TODO
 * @className App
 * @date 2022-11-29 00:34:33
 */
@SpringBootApplication
@MapperScan("com.ea.mapper")
@EnableTransactionManagement//开启事务支持注解，在访问数据库的service方法上添加注解 @Transactional，在发生报错后进行回滚
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}
